import Vue from 'vue'
import VueRouter from 'vue-router'
import TakeOut from '@/views/TakeOut'

Vue.use(VueRouter)

  const routes = [
    {
      path: "/",
      component: TakeOut
    },
    {
      path: "/store_detail/:shopid",
      component: () => import(/* webpackChunkName: "storeDetail" */ '@/views/StoreDetail.vue')
    }
  ]

const router = new VueRouter({
  routes
})

export default router
